package com.wave2.shadow.exceptions;

public class UserAlreadyExists extends Exception{
	
	private static final long serialVersionUID = 7968726674144612199L;
	private String message;

	public UserAlreadyExists() {
        super();
        this.message = "Username already exists in our records.";
	}
	
	public UserAlreadyExists(String userName) {
        super();
        this.message = "Username [" + userName + "] already exists in our records.";
	}
	
	@Override
	public String toString(){
		return message;
	}
	
	@Override
	public String getMessage(){
		return this.toString();
	}
	
}
